package com.isoftstone.disk.obs.service;

import com.isoftstone.disk.mybatis.entity.PtFileEntity;
import com.isoftstone.disk.mybatis.flexigrid.PadingRstType;
import com.isoftstone.disk.mybatis.flexigrid.PagingBean;
import com.isoftstone.disk.mybatis.ztree.ZtreeEntity;
import com.isoftstone.disk.obs.entity.SearchObsEntity;
import org.springframework.http.ResponseEntity;

import java.io.InputStream;
import java.util.List;

public interface ObsService {
    void refreshObsFile();

    PadingRstType<PtFileEntity> getFileListByPage(SearchObsEntity entity, PagingBean paging);

    void uploadFile(String originalFilename, InputStream inputStream);

    ResponseEntity<byte[]> download(String fileUUId);

    void moveFile(String fileUUId,String fileName);

    void renameFile(String fileUUId,String fileName);

    List<ZtreeEntity> queryDirZtreeListByFileId();

    int updatefile(String fileUUId);

    int del(String fileUUId);

    PadingRstType<PtFileEntity> getFileList(SearchObsEntity entity, PagingBean paging);
    String getFileUUid(String fileUUid);
}
